const path=require('path');

/**
 * externals:打包的时候如果遇到这个库，会忽略
 */
module.exports={
    mode:'production',
    entry:'./src/index.js',
    externals:["lodash"],
    output:{
        path:path.resolve(__dirname,'dist'),
        filename:"library.js",
        libraryTarget:'umd',
        library:'library'
    }
}